#include "wavelegend.h"


CPointLegend::CPointLegend()
{
}

CPointLegend::~CPointLegend()
{
    //qDebug() << "CPointLegend" ;
}
WavePointLegend::WavePointLegend(QWidget *parent)
    : QWidget{parent}
{
    pl = &CPointLegend::getInstance();
    pl->randomColor(100);
}

void WavePointLegend::paintEvent(QPaintEvent *event)
{
    Q_UNUSED(event);

    pl->paintColorCard(this);
}

WaveLineLegend::WaveLineLegend(QWidget *parent)
    : QWidget{parent}
{
    ll = &CLineLegend::getInstance();
    ll->setColor(QColor(255, 0, 0));
    ll->setColor(QColor(0, 255, 0));
    ll->setColor(QColor(0, 0, 255));
    ll->setColor(QColor(255, 0, 255));
}

void WaveLineLegend::paintEvent(QPaintEvent *event)
{
    Q_UNUSED(event);
    ll->paintColorCard(this);
}


CLineLegend::CLineLegend()
{
}

CLineLegend::~CLineLegend()
{

}
